package tools.bowtie;

public class bowtieLine_small {

	String qname,tname;
	char strand;
	int start,end;
	
	public bowtieLine_small(String line){
		String[] l= line.split("\t");
		this.setQname(l[0]);
		this.setTname(l[2]);
		this.setStrand(l[1].charAt(0));
		this.setStart(Integer.parseInt(l[3]));
		this.setEnd(this.getStart()+l[4].length());
	}
	
	public String getQname() {
		return qname;
	}
	public void setQname(String qname) {
		this.qname = qname;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	public char getStrand() {
		return strand;
	}
	public void setStrand(char strand) {
		this.strand = strand;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	
	
}
